package com.qianfan.qfcall.network.response

import java.io.Serializable

class BaseResponse<T> : Serializable {
    var code = 0
    var msg: String = ""
    var success: Boolean = true
    var data: T? = null
        private set

    fun setData(data: T) {
        this.data = data
    }

    val isFailed: Boolean
        get() = code != 200
}